Skip to content

Conversation

@xpbob
Copy link

@xpbob xpbob commented Aug 18, 2025

We found that third-party allocation libraries have custom probe analysis allocation instead of the default malloc, such as jemalloc 5.3.0. Inline malloc fastpath into operator new(jemalloc/jemalloc@edbfe69#diff-e84aa11907127083071fc3046183dd381618df08a67a609128f5d750874ab251%EF%BC%89. The observed uprobe has changed. Add a way to customize the uprobe entry to support third-party allocation libraries

@xpbob
Copy link
Author

xpbob commented Aug 27, 2025

The failed task was not caused by the current modification

Copy link
Collaborator

@ekyooo ekyooo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The -S option in libbpf-tools/memleak.c seems to provide the same functionality.
The option differs slightly from this patch.
How about using the same option in both the Python and libbpf-tools versions of memleak? Would there be any issues with this approach?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants